```jsx {3,6,13}
export function Dialog() {
  // initial focused element signal
  const [inputEl, setInputEl] = createSignal()

  const service = useMachine(dialog.machine, {
    initialFocusEl: inputEl,
  })

  // ...

  return (
    //...
    <input ref={setInputEl} />
    // ...
  )
}
```
